﻿using System.Collections.Generic;
using Journal.Domain.Models;

namespace Journal.Domain.IDomainServices
{
    public interface IBaseDomainService<T> where T : IBaseDomainModel
    {
        T Add(T model);

        T Save(T model);
        
        void Delete(T model);

        void Delete(int id);

        IList<T> GetAll();

        T Get(int id);
    }
}